import java.util.Scanner;

/**
 * Created by dllo on 3/28/18.
 */
public class Test10 {
    public static void main(String[] args) {
        // 接收用户输入的两个数
        // 输出 最大值:  最小值:

        System.out.println("请输入两个数:");

        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();

        if (a > b) {
            System.out.println("最大值:" + a + "  最小值:" + b);
        } else {
            System.out.println("最大值:" + b + "  最小值:" + a);
        }
    }
}
